import request from '@/utils/request'

// 查询合同管理列表
export function listContractOrder(query) {
  return request({
    url: '/wms/contractOrder/list',
    method: 'get',
    params: query
  })
}

// 查询合同管理详细
export function getContractOrder(orderCode) {
  return request({
    url: '/wms/contractOrder/' + orderCode,
    method: 'get'
  })
}

// 采购
export function purchaseContractOrder(data) {
  return request({
    url: '/wms/contractOrder/purchase',
    method: 'post',
    data: data
  })
}

// 查询合同信息（多合同）
export function getContractOrders(orderCode) {
  return request({
    url: '/wms/contractOrder/getContractOrders/' + orderCode,
    method: 'get'
  })
}
